import request from '@/utils/request';

export async function repayList(params) {
  return request(`/repayment/merchant/query`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}


export async function recharge(params) {
  return request('/repayment/recharge', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getRepayDesc(params) {
  return request(`/repayment/repay/detail/${params.repaymentNo}`, {
    method: 'POST',
    body: {},
  });
}

export async function repaymentRepay(params) {
  return request(`/repayment/repay`, {
    method: 'POST',
    body: params,
  });
}

export async function updateRule(params) {
  return request('/dept/edit', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function sortChange(params) {
  return request('/dept/sort/change', {
    method: 'POST',
    body: params,
  });
}

